const state = {
  assetSearchObj: null
}

const mutations = {
  SET_ASSETSEARCHOBJ: (state, assetSearchObj) => {
    state.assetSearchObj = assetSearchObj
  },
  RESET_ASSETSEARCHOBJ: (state) => {
    state.assetSearchObj = null
  }
}

const actions = {
  setAssetSearchObj({ commit }, assetSearchObj) {
    commit('SET_ASSETSEARCHOBJ', assetSearchObj)
  },
  resetAssetSearchObj({ commit }) {
    commit('RESET_ASSETSEARCHOBJ')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
